.tree-root {

    .tree-item {
    
        &>.tree-title {
            display: block;
            height: 24px;
            line-height: 24px;
            margin-top: 5px;
            margin-bottom: 5px;
            cursor: text;
            
            &:hover {
            	background:#fafafa;
            }
            
            .tree-text {
                float: left;
                display: block;
                font-size: 14px;
            }
            
            /*折叠框*/
            .tree-icon-sub {
                float: left;
                display: block;
                width: 24px;
                height: 24px;
                font-size: 16px;
                text-align: center;
                
                &::before {
                    content: "├";
                }
            }
            
            /*选择框*/
            .tree-icon-checked {
                float: right;
                display: block;
                width: 24px;
                height: 24px;
                font-size: 16px;
                text-align: center;
                line-height: 22px;
                box-sizing: border-box;
                border: 1px solid #eee;
                cursor: pointer;
                margin-right: 5px;
                &.checked:before {
                    content: "\e605";
                }
            }
        }
        
        &.tree-sub>.tree-title {
        
            &+.tree-list {
                display: none;
                margin-left: 24px;
            }
            
            .tree-icon-sub {
                cursor: pointer;
                
                &::before {
                    content: "\e623";
                }
            }
        }
        
        &.tree-sub>.tree-title.opened {
        
            &+.tree-list {
                display: block;
            }
            
            .tree-icon-sub:before {
                content: "\e625";
            }
        }
    }
}